package ClientsAndHotels.types;

import java.io.Serializable;
import java.util.Date;

public class OrderRequest implements Serializable {

    // miasto poszukiwanego hotelu
    private String city;
    // minimalna liczba gwiazdek poszukiwanego hotelu
    private int hotelStarsMin;
    // maksymalna liczba gwiazdek poszukiwanego hotelu
    private int hotelStarsMax;
    // liczba osób
    private int roomFor;
    // maksymalna cena pokoju
    private double maxPrice;
    private Date date;
    private int days;

    public OrderRequest(String city, int hotelStarsMin, int hotelStarsMax,
            int roomFor, double maxPrice, Date date, int days) {
        super();
        this.city = city;
        this.hotelStarsMin = hotelStarsMin;
        this.hotelStarsMax = hotelStarsMax;
        this.roomFor = roomFor;
        this.maxPrice = maxPrice;
        this.date = date;
        this.days = days;
    }

    public String getCity() {
        return city;
    }

    public int getHotelStarsMin() {
        return hotelStarsMin;
    }

    public int getHotelStarsMax() {
        return hotelStarsMax;
    }

    public int getRoomFor() {
        return roomFor;
    }

    public double getMaxPrice() {
        return maxPrice;
    }

    public Date getDate() {
        return date;
    }

    public int getDays() {
        return days;
    }

    @Override
    public String toString() {
        return "(" + city + "," + hotelStarsMin + "," + hotelStarsMax + ","
                + roomFor + "," + maxPrice + ")";
    }
}
